import { TableBase, TextTable } from '@/components/public-template';

class HomeService {
  getTables() {
    const tables: TableBase<any>[] = [
      new TextTable({
        key: 'code',
        value: '单据编码',
        class: 'text-primary'
      }),
      new TextTable({
        key: 'billType',
        value: '单据类型',
        type: 'dictionary',
        state: {
          filterName: 'DMS_PUBILC_FILE_LOG_BILL_TYPE'
        }
      }),
      new TextTable({
        key: 'version',
        value: '版本号'
      }),
      new TextTable({
        key: 'creatorName',
        value: '申请人'
      }),
      new TextTable({
        key: 'reviewStartTime',
        value: '开始审核时间'
      }),
      new TextTable({
        key: 'reviewEndTime',
        value: '结束审核时间'
      })
    ];
    return tables;
  }
  getOperateTables() {
    const tables: TableBase<any>[] = [
      new TextTable({
        key: 'optType',
        value: '操作类型',
        type: 'dictionary',
        state: {
          filterName: 'DMS_ARCHIVES_FILE_OPT_PERMISSION'
        }
      }),
      new TextTable({
        key: 'creatorName',
        value: '操作人'
      }),
      new TextTable({
        key: 'createdTime',
        value: '操作时间'
      })
    ];
    return tables;
  }
}

export default new HomeService();
